package br.com.pedrosilva.fv.core;

public class Teste {

	public static void main(String[] args) {
		String[] teste = { "UmArquivoBom", "Outro_Arquivo-Bom.txt", "Um arquivo com espaco", "ã", "â", "á", "à", "ç",
				"pãco", "arquivo.txt", "c:\\", "/",
				"V:\\94665516553_view_DE\\SUPDE_DOC\\BSA\\13-Testes\\01-Atas\\SUPDEBSA-AR-20080901-pãcoAcompanhamentoTestes.odt",
				"C:\\temp\\CVSROOT\\92200sidoriv\\01-Sistema\\02-Requisitos\\02-Documentos\\Precatorios\\DocumentosCancelados\\Precatorios-ECU-ManterTipoDeSituacao.doc,v"};

		for (String t : teste) {
			// System.out.println(t.matches("\\S+|[a-zA-Z]+|[0-9]+|[-|_|.|\\|/]+"));
			// System.out.println(t.matches("[a-zA-Z]+[.-_\\/]+[a-zA-z0-9]+"));
			//(\\w*[-.\\/]*\\w)*
		//^([a-zA-Z]:[\\\\]*|(/{1})*)(\\w*[-.\\\\/]*\\w*)+
			System.out.println(t.matches("^(([a-zA-Z]:\\\\)*|/{1})[\\w-./\\\\]*"));
			//System.out.println(t.matches("^([a-zA-Z]:[\\\\]*|(/{1})*)(\\w*[-.\\\\/]*\\w*)+"));
		}

	}
}
